package org.darkforest.common.services.impl;

import org.darkforest.common.services.GiftCardTemplateService;
import org.darkforest.dao.mapper.GiftCardTemplateMapper;
import org.darkforest.model.GiftCardTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc on 2017/4/6.
 */
@Service
public class GiftCardTemplateServiceImpl implements GiftCardTemplateService {
    @Autowired
    private GiftCardTemplateMapper giftCardTemplateMapper;
    @Override
    public GiftCardTemplate selectByCondition(GiftCardTemplate record) {
        record.setResultList(giftCardTemplateMapper.selectByCondition(record));
        return record;
    }
}
